BEGIN{FS="\t"}
{
  # 1:date 2:uuid 3:appId 4:pageType 5 version 6 ip 7:channel
  kind="count";
  key=$2"_"$3"_"$4"_"$6
  if(key in count){
    count[key]+=1;
  }else{
    count[key]=1;
  }
  date[key]=substr($1,1,10);
  time[key]=substr($1,12,2);
  appId[key]=$3;
  pageType[key]=$4;
  ip[key]=$6;
}
END{
  for(i in count){
    printf("%s\t%s\t%d\t%d\t%s\t%s\n",date[i],time[i],appId[i],count[i],pageType[i],ip[i]);
  }
}
